package com.tang.web;

import com.tang.server.NettyServer;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Controller
 *
 * @author fulin.tang
 * @version V3.0
 * @since 2022/5/18 16:21
 */
@Controller
public class NettyController {
    
    @SuppressWarnings("unused")
    private final NettyServer nettyServer;

    public NettyController(NettyServer nettyServer) {
        this.nettyServer = nettyServer;
    }


    @RequestMapping("/index")
    public String index(Model model) {
        model.addAttribute("name", "xiaohao");
        return "index";
    }

}
